<?php
if(empty($_GET['imgUrl'])){echo "no img";exit;}else{$imgUrl = $_GET['imgUrl'];}
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $imgUrl);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST,false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$data = curl_exec($curl);
if (curl_errno($curl)){return 'ERROR'.curl_error($curl);}
curl_close($curl);
header('Content-type: image/jpg');
echo $data;
?>